package com.peas.platform.module.icims.base.auth.controller.vo;

import com.peas.platform.common.core.vo.BaseVo;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotNull;

@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel("用户角色")
public class UserRoleVo extends BaseVo {

    //外键
    @ApiModelProperty(value = "用户表ID")
    @NotNull(message = "用户表ID不能为空")
    private Long userId;

    //外键
    @ApiModelProperty(value = "角色ID")
    @NotNull(message = "角色ID不能为空")
    private Long roleId;

}
